-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use wallet connection component #64
base: main
Are you sure you want to change the base?
Conversation
4e0ceff
to
89dc44e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remark
I just want to report back with several errors that I observed adopting this code in dapp-agoric-basics
. So far the UI is still displaying things so I don't know the implications and if these are worth fixing.
@@ -1,49 +1,53 @@ | |||
import { ConnectWalletButton, useAgoric } from '@agoric/react-components'; | |||
import { stringifyAmountValue } from '@agoric/ui-components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got an error for this line
Could not find a declaration file for module '@agoric/ui-components'
lockdown({ | ||
errorTaming: 'unsafe', | ||
overrideTaming: 'severe', | ||
consoleTaming, | ||
}); | ||
|
||
Error.stackTraceLimit = Infinity; | ||
|
||
globalThis.Buffer = Buffer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got an error on this line.
Property 'Buffer' does not exist on type 'typeof globalThis'.
@LuqiPan Does I have noticed vscode shows me type errors, but not the actual build step. If I put in |
I still get an error with
Ref: my source code is at https://github.com/Agoric/dapp-agoric-basics/tree/977-mint-tickets-ui/interchain-ui |
@LuqiPan Ah gotcha, try declaring the module like this https://github.com/Agoric/dapp-offer-up/blob/main/ui/src/vite-env.d.ts#L3-L5. Though I'm not sure why the Buffer issue shows up in one dapp but not the other yet, but a |
Thank you. That resolved my error and |
This is no longer needed as ses 1.3.0 was published several hours ago and it contains the fix (endojs/endo#2030). |
Requires the WIP @agoric/react-components lib in https://github.com/Agoric/ui-kit/tree/react-components/packages/react-components:
Also requires this ses patch endojs/endo#2030: